#include <iostream>
using namespace std;
class test
{
private:
	int aa;
	int bb;
public:
	test(const int a=0,const int b=0):aa(a),bb(b){}
	friend test operator+(const test&,const test&);
};
test operator+(const test&a,const test&b)
{
	test c;
	c.aa=a.aa+b.aa;
	c.bb=a.bb+b.bb;
	cout << c.aa << (c.bb>=0? "+" : "-") << c.bb << endl;
	return c;
}
int main()
{
	test a(1,2);
	test b(2,3);
	test c=a+b;
	return 0;
}

